﻿namespace Digitalmes.Domain.Entities.Sys;

/// <summary>
/// 系统角色菜单关联表
/// </summary>
[SugarTable("sys_role_menu")]
public sealed class SysRoleMenu : EntityBase
{
    /// <summary>
    /// 角色Id
    /// </summary>
    public long RoleId { get; set; }

    /// <summary>
    /// 菜单Id
    /// </summary>
    public long MenuId { get; set; }

    /// <summary>
    /// 菜单
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(MenuId))]
    public SysMenu? SysMenu { get; set; }
}
